#ifndef SHOUBING_H
#define SHOUBING_H

#include <QObject>
#include <QGamepad>
#include <QGamepadManager>

#include "page1_video.h"

class shoubing : public QObject
{
    Q_OBJECT
public:
    explicit shoubing(QObject *parent = nullptr);

    QGamepad * m_gamepad;
    page1 * p1_in_gamepad;
//机械臂
    void robot_arm_shen(double value);
    void robot_arm_shou(bool is_push);
//机械爪
    void robot_hand_shen(double value);
    void robot_hand_shou(bool is_push);
//探照灯
    void robot_light(bool value);
//定深模式
    void robot_ding_shen(bool value);
//摄像头云台
    void camera_lock(bool value);
    void camera_reserve(bool value);
    void camera_turn(bool value);
//x和y平动控制
    void shoubing_pingdong_x(double value);
    void shoubing_pingdong_y(double value);
//z平动控制即上升下潜
    void robot_up(bool value);
    void robot_down(bool value);
//俯仰（pitch）和左右（yaw）控制
    void shoubing_zhuandong_yaw(double value);
    void shoubing_zhuandong_pitch(double value);
signals:

private:
    bool is_buttonL1_push;
    bool is_buttonL2_push;
    bool is_buttonR1_push;
    bool is_buttonR2_push;
    bool is_light_open;
    bool is_camera_lock;
};

#endif // SHOUBING_H
